﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewList.aspx.cs" Inherits="HQWeb.View.ViewList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>婚礼展示</title>
    <%-- <base target="_blank" />--%>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="../Scripts/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="../Scripts/view/View.js"></script>
    <script type="text/javascript" src="../Scripts/Cookie.js"></script>
    <link type="text/css" rel="Stylesheet" href="../Styles/view/StyleSheet.css" />
    <link type="text/css" rel="Stylesheet" href="../Styles/GridViewStyle.css" />
    <link type="text/css" rel="Stylesheet" href="../Styles/ContactStyle.css" />
    <link type="text/css" rel="Stylesheet" href="../Styles/view/View.css" />
    <link type="text/css" rel="Stylesheet" href="../Styles/view/jwplayernew.css" />
    <link type="text/css" rel="Stylesheet" href="../Styles/view/CustomizeView.css" />
    <link type="text/css" rel="stylesheet" href="../Progect/PhotoManage/css/jquery.galleryview-3.0-dev.css" />
    <script type="text/javascript" src="../Scripts/view/jquery.blockUI.js"></script>
    <script type="text/javascript" src="../Progect/PhotoManage/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="../Scripts/Cookie.js"></script>
    <script type="text/javascript" src="../Progect/PhotoManage/js/jquery.timers-1.2.js"></script>
    <script type="text/javascript" src="../Progect/PhotoManage/js/jquery.galleryview-3.0-dev.js"></script>
    <script type="text/javascript" src="../Scripts/view/jwplayer.js"></script>
    <script type="text/javascript" src="../Scripts/view/CustomizeView.js"></script>
    <script language="javascript" type="text/javascript" src="../../My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript" src="../Scripts/view/JScript2.js"></script>
    <%--<script type="text/javascript" src="../Progect/PhotoManage/308/jquery.insetBorderEffect.js"></script>--%>
    <style type="text/css">
        .title
        {
            padding: 4px;
            font-size: 14px;
        }
        .title img
        {
            width: 14px;
            height: 14px;
            float: right;
            cursor: pointer;
        }
        .window
        {
            background-color: #D0DEF0;
            width: 450px; /*padding: 2px;*/
            margin: 5px; /*控制窗口绝对定位*/
            position: absolute;
            display: none;
            z-index: 4000;
        }
        .ct_content
        {
            height: auto;
            border: 2px solid #D0DEF0;
            padding: 2px; /*控制区域内容超过指定高度和宽度时显示滚动条*/
            overflow: auto;
        }
        .linktitle
        {
            padding: 4px;
            font-size: 14px;
        }
        .linktitle img
        {
            width: 14px;
            height: 14px;
            float: right;
            cursor: pointer;
        }
        .linkwindow
        {
            background-color: #D0DEF0;
            width: 800px; /*padding: 2px;*/
            margin: 5px; /*控制窗口绝对定位*/
            position: absolute;
            border: 2px solid #D0DEF0;
            display: none;
            z-index: 100;
        }
        
        .linct_content
        {
            height: 250px;
            padding: 2px; /*控制区域内容超过指定高度和宽度时显示滚动条*/
            overflow: auto;
        }
        .reminderpage
        {
            background-color: #D0DEF0;
            width: 800px; /*padding: 2px;*/
            margin: 5px; /*控制窗口绝对定位*/
            position: absolute;
            border: 2px solid #D0DEF0;
            display: none;
            z-index: 110;
        }
        #remindercontainer
        {
            height: 480px;
            padding: 2px; /*控制区域内容超过指定高度和宽度时显示滚动条*/
            overflow: auto;
        }
        .remindertitle
        {
            padding: 4px;
            font-size: 14px;
        }
        .remindertitle img
        {
            width: 14px;
            height: 14px;
            float: right;
            cursor: pointer;
        }
        .g_clr
        {
            width: 400px;
        }
        .g_clr span
        {
            display: inline-block;
            height: 30px;
            line-height: 30px;
            width: 116px;
        }
        .js_text
        {
            color: #000000;
            overflow: hidden;
            text-decoration: none;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 64px;
        }
        .js_psite-sites li
        {
            background-color: #FFFFFF;
            border: 1px dotted #BBBBBB;
            display: inline;
            float: left;
            font-size: 14px;
            height: 20px;
            line-height: 20px;
            margin: 4px 0 4px 8px;
            overflow: hidden;
            width: 107px;
        }
        .js_modify
        {
            float: left;
            margin-left: 5px;
            background-image: url("http://s0.hao123img.com/index/images/site/sprite0829.png");
            background-repeat: no-repeat;
            height: 20px;
            background-position: -88px 4px;
            width: 9px;
        }
        .js_delete
        {
            float: left;
            margin-left: 5px;
            background-image: url("http://s0.hao123img.com/index/images/site/sprite0829.png");
            background-repeat: no-repeat;
            height: 20px;
            background-position: -60px 4px;
            width: 15px;
        }
        .js_psite-sites
        {
            overflow: hidden;
            padding: 12px 0 12px 8px;
            position: relative;
        }
        .js_vtext
        {
            display: inline-block;
            text-decoration: none;
            height: 30px;
            line-height: 30px;
            width: 116px;
        }
        .classCloseWindow
        {
            width: 36px;
            height: 36px;
            z-index: 1001;
            position: fixed;
        }
    </style>
    <script type="text/javascript" language="javascript">
        //       window.onload = function () { $(".classimage").insetBorder(); }
        function getProjectInfo(inputid, ProjectID, type) {
            var withs = $("#" + inputid).offset().left;
            var hights = $("#" + inputid).offset().top;
            var varUrl;
            if (type == "1") {
                varUrl = "GetDetialProjectshx.ashx";
            } else {
                varUrl = "GetDetialTheme.ashx";
            }
            $.ajax({
                type: "GET",
                url: varUrl + "?id=" + ProjectID,
                success: function (obj) {
                    if (obj != "") {
                        $(".ct_content").html(obj);
                        $(".window").css("left", withs);
                        $(".window").css("top", hights - $(".window").height());
                        $(".window").show();
                    }

                },
                error: function (xhr, ajaxOptions, thrownError)
                { alert(thrownError); flag = true; return false; }
            });

        }
        function funSetRunSstae(message) {
            if (message != '') {
                //  alert(message);
            }
            IsRuning = '0';
            alert(IsRuning);


        }
        function funMessage() {
            $.blockUI({
                message: "请稍候",
                css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: 'yellow',
                    width: "300px",
                    opacity: .5,
                    color: 'Red'
                }
            });
            setTimeout($.unblockUI, 2000);
        }

        //        function reminder() {
        //            window.open("../Login/WorkPlatform.aspx", "", "top=150px,left=200px,height=480px,width=800px");
        //        }
        // 扩展过渡效果到 jQuery
        jQuery.extend(jQuery.easing, {
            def: "easeOutQuad",
            swing: function (c, a, b, d, e) {
                return jQuery.easing[jQuery.easing.def](c, a, b, d, e)
            },
            easeOutBounce: function (c, a, b, d, e) {
                return (a /= e) < 1 / 2.75 ? d * 7.5625 * a * a + b : a < 2 / 2.75 ? d * (7.5625 * (a -= 1.5 / 2.75) * a + 0.75) + b : a < 2.5 / 2.75 ? d * (7.5625 * (a -= 2.25 / 2.75) * a + 0.9375) + b : d * (7.5625 * (a -= 2.625 / 2.75) * a + 0.984375) + b
            }
        });
    </script>
</head>
<body onresize="changeWindow()">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Services>
            <asp:ServiceReference Path="../Progect/PhotoManage/PhotoServer.asmx" />
        </Services>
    </asp:ScriptManager>
    <div class="orderPage" id="orderPageid">
        <div class="cancel" onclick="CloseOrder()">
            <image src="../../Images/18.png" onclick="CloseOrder()"></image>
           
        </div>
        <div class="order">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btn_Submit" />
                    <asp:AsyncPostBackTrigger ControlID="GetProject" />
                    <asp:AsyncPostBackTrigger ControlID="btnClanle" />
                    <asp:AsyncPostBackTrigger ControlID="GetOrderWord" />
                    <asp:AsyncPostBackTrigger ControlID="GetOrder" />
                    <asp:AsyncPostBackTrigger ControlID="Button1" />
                </Triggers>
                <ContentTemplate>
                    <table width="1024px">
                        <tr>
                            <td colspan="4" class="title">
                                <asp:Label runat="server" Font-Size="Large" Font-Bold="true" ID="labTitle" Text="我的订单"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 20%">
                                庆典类型：
                            </td>
                            <td style="width: 30%; text-align: left">
                                <asp:DropDownList runat="server" ID="orderType">
                                </asp:DropDownList>
                                <input type="button" value="选择存在订单" onclick="GetEditOrder()" />&nbsp;<input type="button"
                                    value="导出Word" onclick="GetWord()" />
                            </td>
                            <td align="right" style="width: 20%">
                                服务日期：
                            </td>
                            <td align="left">
                                <input id="d12" runat="server" type="text" onfocus="WdatePicker()" class="Txt" />
                                <img alt="日期" onclick="WdatePicker({el:'d12'})" src="../../My97DatePicker/skin/datePicker.gif"
                                    align="middle" width="16" height="28">
                                <asp:DropDownList runat="server" ID="dropDate">
                                    <asp:ListItem Value="" Text="--请选择--">
                                    </asp:ListItem>
                                    <asp:ListItem Value="1" Text="上午"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="中午"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="下午"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="晚上"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                新郎姓名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGROOM_NAME" runat="server" CssClass="Txt"></asp:TextBox>
                            </td>
                            <td align="right">
                                新娘姓名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtBRIDE_NAME" runat="server" CssClass="Txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                新郎电话：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGROOMPHONE" runat="server" CssClass="Txt"></asp:TextBox>
                            </td>
                            <td align="right">
                                新娘电话：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtBRIDEPHONE" runat="server" CssClass="Txt"></asp:TextBox>
                                </a>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                婚礼预算：
                            </td>
                            <td colspan="3">
                                <asp:DropDownList runat="server" ID="dropPrice">
                                </asp:DropDownList>
                                <a href="javascript:expandcollapse('MoreInformation', 'img_show');">
                                    <img id="img_show" alt="点击显示/隐藏下级菜单" width="64px" border="0" src="../../Images/more.gif" />
                            </td>
                        </tr>
                        <tbody id="MoreInformation" style="display: none">
                            <tr>
                                <td align="right">
                                    新郎年龄：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtGROOMAGE" runat="server" CssClass="Txt"></asp:TextBox>
                                    <%--   <asp:RangeValidator ID="RangeValidator1" ControlToValidate="txtGROOMAGE" ForeColor="Red"
                                        runat="server" ErrorMessage="输入正确的年龄！12-99" MaximumValue="99" MinimumValue="12"></asp:RangeValidator>--%>
                                </td>
                                <td align="right">
                                    新娘年龄：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtBRIDEAGE" runat="server" CssClass="Txt"></asp:TextBox>
                                    <%-- <asp:RangeValidator ID="RangeValidator2" ControlToValidate="txtBRIDEAGE" runat="server"
                                        ForeColor="Red" ErrorMessage="输入正确的年龄！12-99" MaximumValue="99" MinimumValue="12"></asp:RangeValidator>--%>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    新郎QQ：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtGROOMQQ" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                                <td align="right">
                                    新娘QQ：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtBRIDEQQ" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    新房地址：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtHOUSEADDRESS" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                                <td align="right">
                                    娘家地址：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtBRIDEADDRESS" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    纪念日：
                                </td>
                                <td>
                                    类型：<asp:DropDownList runat="server" ID="MemorialType">
                                    </asp:DropDownList>
                                    &nbsp; 日期:
                                    <input id="MemorialDate" runat="server" type="text" onfocus="WdatePicker()" class="Txt" />
                                    <img onclick="WdatePicker({el:'MemorialDate'})" src="../../My97DatePicker/skin/datePicker.gif"
                                        align="middle" width="16" height="28">
                                </td>
                                <td align="right">
                                    酒店接待人员：
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtHotelManage" CssClass="Txt"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    服务地址：
                                </td>
                                <td align="left">
                                    <input style="width: 256px;" url="true" id="Text1" type="text" runat="server" /><br />
                                    <div style="display: none; position: fixed;" id="allSitesBoxHdl" class="classlist"
                                        onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">
                                        <ul id="allSitesBoxContent">
                                        </ul>
                                    </div>
                                </td>
                                <td align="right">
                                    业务来源：
                                </td>
                                <td align="left">
                                    <asp:DropDownList runat="server" ID="dropFrom">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    新郎职务：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtGROOMPOST" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                                <td align="right">
                                    新娘职务：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtBRIDEPOST" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    婚纱照交接情况：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtWEDDING" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                                <td align="right">
                                    婚车负责人：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtMARRIAGECAR" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    桌数：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtTABLENUM" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                                <td align="right">
                                    来宾中长辈数：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtELDER" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    新房地址：
                                </td>
                                <td>
                                    <asp:TextBox ID="txtRANK" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                                <td align="right">
                                    来宾中后辈数：
                                </td>
                                <td>
                                    <asp:TextBox ID="txtYOUNGER" runat="server" CssClass="Txt"></asp:TextBox>
                                </td>
                            </tr>
                        </tbody>
                        <tr>
                            <td align="right">
                                风格
                            </td>
                            <td colspan="3" runat="server" id="controls">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                备注
                            </td>
                            <td colspan="3" align="left">
                                <asp:TextBox runat="server" ID="txtOther" TextMode="MultiLine" Width="558px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center">
                                市面金额:<asp:TextBox ID="txtTotal" runat="server" CssClass="Txt"></asp:TextBox>
                                签单金额：<asp:TextBox ID="textRealTotal" runat="server" CssClass="Txt" onblur="CheckMessage(this)"></asp:TextBox>
                                定金：<asp:TextBox ID="txtDinJin" runat="server" CssClass="Txt" onblur="CheckMessage(this)"></asp:TextBox>
                                未交金额:<asp:TextBox ID="txtUnpaid" runat="server" CssClass="Txt" ReadOnly="true"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center">
                                <asp:Button ID="btn_Submit" runat="server" Text="提 交" OnClick="btn_Submit_Click"
                                    OnClientClick="return GetStyle('1')" />
                                <asp:Button ID="Button1" runat="server" Text="修 改" Visible="false" OnClick="Button1_Click"
                                    OnClientClick="return GetStyle('2')" />
                                <asp:Button ID="btnClanle" runat="server" Text="清 空" OnClick="btnClanle_Click" OnClientClick="javascript:__doPostBack('btnClanle', '')" />
                                <asp:HiddenField ID="hidRunState" runat="server" />
                                <asp:Button runat="server" ID="GetProject" OnClick="GetProject_Click" Style="display: none" />
                                <asp:Button runat="server" ID="GetOrder" OnClick="GetOrder_Click" Style="display: none" />
                                <asp:Button runat="server" ID="GetOrderWord" OnClick="GetWord_Click" Style="display: none" />
                                <asp:HiddenField runat="server" ID="hidOrderID" />
                                <asp:HiddenField ID="hidOldProjectID" runat="server" />
                                <asp:HiddenField ID="hidOldDinJin" runat="server" />
                                <asp:HiddenField ID="hidStytle" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <asp:GridView ID="GridView1" CssClass="GridViewStyle" runat="server" AutoGenerateColumns="False"
                                    PageSize="25" Width="100%" AllowPaging="True" CellPadding="4" EmptyDataText="没有数据记录！！"
                                    OnPageIndexChanging="GridView1_PageIndexChanging" GridLines="None" DataKeyNames="a"
                                    OnRowDataBound="GridView1_RowDataBound">
                                    <Columns>
                                        <asp:TemplateField HeaderText="序号" ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <%#Container.DisplayIndex +1%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField ItemStyle-Width="5%">
                                            <ItemTemplate>
                                                <a href="javascript:expandcollapse('div<%# Eval("a") %>', '<%#Eval("a")%>');">
                                                    <img id="imgdiv<%# Eval("a") %>" alt="点击显示/隐藏下级菜单 " width="9px" border="0" src="../../Images/expand_blue.jpg" />
                                                </a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField ItemStyle-Width="96px" HeaderText="图片" ItemStyle-Height="54px">
                                            <ItemTemplate>
                                                <asp:Image ID="Image1" runat="server" ImageUrl='<%#Eval("URLThumbnail")==DBNull.Value? "../Images/Element/nophoto.bmp":Eval("URLThumbnail")%>'
                                                    Width="96px" Height="54px" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="b" HeaderText="项目名称" ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Center">
                                            <ItemStyle Width="25%"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="d" HeaderText="所属分类" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center">
                                            <ItemStyle Width="15%"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="c" HeaderText="单 价" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
                                            <ItemStyle Width="20%"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="数量" ItemStyle-Width="25%">
                                            <ItemStyle HorizontalAlign="Center" />
                                            <ItemTemplate>
                                                <input type="button" id="<%#"add"+Eval("a")%>" onclick="ChangeNumber('1','<%#Eval("a")%>')"
                                                    value="+" title="数量加一" />&nbsp; <a id="<%#"Number"+Eval("a")%>">
                                                        <%#Eval("Number")%></a>&nbsp;<input type="button" id="<%#"jian"+Eval("a")%>" onclick="ChangeNumber('-1','<%#Eval("a")%>')"
                                                            value="-" title="数量减一" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%">
                                            <ItemTemplate>
                                                <a onclick="RemoveProject('<%#Eval("a")%>')" style="cursor: pointer">移除</a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <tr>
                                                    <td colspan="100%">
                                                        <div id="div<%# Eval("a") %>" style="display: none; position: relative; left: 15px;
                                                            overflow: auto; width: 97%">
                                                            <asp:GridView ID="GridView2" AllowPaging="False" AllowSorting="true" BackColor="White"
                                                                Width="100%" AutoGenerateColumns="false" Font-Names="Verdana" runat="server"
                                                                DataKeyNames="a" ShowFooter="true" BorderStyle="Double" BorderColor="#0083C1">
                                                                <RowStyle BackColor="Gainsboro" />
                                                                <AlternatingRowStyle BackColor="White" />
                                                                <HeaderStyle BackColor="#0083C1" ForeColor="White" />
                                                                <FooterStyle BackColor="White" />
                                                                <Columns>
                                                                    <asp:BoundField DataField="c" HeaderText="名称 " ItemStyle-HorizontalAlign="Center" />
                                                                    <asp:BoundField DataField="b" HeaderText="数量 " ItemStyle-HorizontalAlign="Center" />
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerTemplate>
                                        <table width="100%">
                                            <tr>
                                                <td style="text-align: center">
                                                    第<asp:Label ID="lblPageIndex" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />页
                                                    共<asp:Label ID="lblPageCount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount  %>' />页
                                                    <asp:LinkButton ID="btnFirst" runat="server" CausesValidation="False" CommandArgument="First"
                                                        CommandName="Page" Text="首页" />
                                                    <asp:LinkButton ID="btnPrev" runat="server" CausesValidation="False" CommandArgument="Prev"
                                                        CommandName="Page" Text="上一页" />
                                                    <asp:LinkButton ID="btnNext" runat="server" CausesValidation="False" CommandArgument="Next"
                                                        CommandName="Page" Text="下一页" />
                                                    <asp:LinkButton ID="btnLast" runat="server" CausesValidation="False" CommandArgument="Last"
                                                        CommandName="Page" Text="尾页" />
                                                    <asp:TextBox ID="txtNewPageIndex" runat="server" Width="28px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />
                                                    <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-1"
                                                        CommandName="Page" Text="GO" /><!-- here set the CommandArgument of the Go Button to '-1' as the flag -->
                                                </td>
                                            </tr>
                                        </table>
                                    </PagerTemplate>
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                                    <PagerStyle CssClass="GridViewPagerStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
    <div class="toptitle">
        <table border="0px" width="100%" style="height: 100%">
            <tr>
                <td style="line-height: 20px">
                    <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/View/logo.png" />
                </td>
                <td valign="middle">
                    <asp:Image ID="Image6" align="absmiddle" runat="server" ImageUrl="~/Images/View/wdlj.png"
                        ToolTip="我的链接" Style="cursor: pointer" onclick="funtxt5('Image6')" />&nbsp;&nbsp;
                    <asp:Image ID="Image3" runat="server" align="absmiddle" ImageUrl="~/Images/View/login.png"
                        ToolTip="我的工作台" Style="cursor: pointer" onclick="javascript:location ='../Login/index.html'" />&nbsp;&nbsp;
                    <asp:Image ID="Image2" runat="server" align="absmiddle" ImageUrl="~/Images/View/contact.png"
                        ToolTip="提示信息" Style="cursor: pointer" onclick="reminder('Image2')" />&nbsp;&nbsp;
                    <asp:Image ID="Image4" runat="server" align="absmiddle" ImageUrl="~/Images/View/wddz.png"
                        ToolTip="订单" Style="cursor: pointer" onclick="openOrder()" />
                    &nbsp;&nbsp;
                    <asp:Image ID="xlimage2" align="absmiddle" runat="server" onclick="ChangePage('CustomizeView.aspx','2')"
                        Style="cursor: pointer; filter: alpha(opacity=60)" ImageUrl="~/Images/View/xrxt.png" />&nbsp;
                    <asp:Image ID="xlimage1" align="absmiddle" runat="server" Style="cursor: pointer"
                        onclick="ChangePage('CustomizeView.aspx','1')" ImageUrl="~/Images/View/xlzs.png" />
                    <asp:Image ID="xlimage3" runat="server" align="absmiddle" Style="cursor: pointer"
                        onclick="ChangePage('CustomizeView.aspx','3')" ImageUrl="~/Images/View/xldz.png" />
                    <asp:Image ID="xlimage4" runat="server" align="absmiddle" onclick="ChangePage('CustomizeView.aspx','4')"
                        Style="cursor: pointer" ImageUrl="~/Images/View/jdzs.png" />
                    <asp:Image ID="xlimage6" runat="server" align="absmiddle" onclick="ChangePage('GetThemeView.aspx','6')"
                        Style="cursor: pointer" ImageUrl="~/Images/View/ztqd.png" />
                    <input type="text" id="textName" />
                    <asp:Image runat="server" ID="iSearch" ImageUrl="~/Images/View/search.png" align="absmiddle"
                        ToolTip="查询" onclick="javascript:getSearchDate('filename',document.getElementById('textName').value)" />
                    <%--                <input type="text" id="textName" /><input type="button" value=" 搜索" id="btna_search"
                        style="background-image: url('~/Images/View/search.png')" onclick="javascript:getSearchDate('filename',document.getElementById('textName').value)" />--%>
                </td>
            </tr>
        </table>
    </div>
    <div id="sideBar">
        <div id="sideBarContentsInner">
        </div>
        <div id="sideBarTab">
            <a href="#">
                <img src="../Images/View/searchPrroject.png" alt="sideBar" title="sideBar" /></a>
        </div>
    </div>
    <div onmouseover="changPagColour('2')" onmousemove="changPagColour('1')" class="addPage"
        style="z-index: 5; cursor: pointer">
        <image id="imagAdd" src="../../Images/View/m1.png"></image>
    </div>
    <div onmouseover="changeJpagColor('2')" onmousemove="changeJpagColor('1')" class="MinusPage"
        style="z-index: 5; cursor: pointer">
        &nbsp;<image id="imagMinus" src="../../Images/View/a1.png"></image>
    </div>
    <div class="car">
        <div class="shopcar" title="购物车">
        </div>
        <div class="shopcarconection">
            <div class="shoptitle">
                所选择项目
            </div>
            <div class="shopcont">
                <table id="tb1">
                    <tr style="background-color: #EEF2FB">
                        <th style="width: 100px">
                            缩略图
                        </th>
                        <th style="width: 100px">
                            项目
                        </th>
                        <th style="width: 40px">
                            单价
                        </th>
                        <th style="width: 40px">
                            数量
                        </th>
                        <th style="width: 100px">
                            类别
                        </th>
                        <th style="width: 50px">
                            操作
                        </th>
                    </tr>
                </table>
                <div style="height: 450px; overflow: auto">
                    <table id="tb2">
                        <tbody id="ShopConnect">
                        </tbody>
                    </table>
                </div>
                <table id="tb3">
                    <tbody>
                        <tr>
                            <td colspan="2" style="width: 20%">
                                合计总价：
                            </td>
                            <td id="shopsum" style="width: 30%">
                            </td>
                            <td colspan="2" align="right">
                                <a onclick="clearShopCar()" style="cursor: pointer; background: #C2635B; border: 4pt;
                                    border-bottom-color: #ffffcc; border-bottom-style: solid; font-size: larger;
                                    font-family: @Adobe 楷体 Std R">移除所有项目</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div>
            </div>
        </div>
    </div>
    <div class="pagecount" style="width: 1300px; overflow: auto; text-align: center;
        top: 110px">
    </div>
    <div style="display: none">
        <input type="text" id="txtID" />
        <input type="text" value="add" id="Linksign" />
        <input type="text" value="" id="linkid" />
    </div>
    <div style="background-color: #242424; top: 900px; position: fixed; width: 100%;
        height: 100%; left: 0px">
        &nbsp;
    </div>
    <div class="window" style="display: none">
        <div class="title" onclick="javascript:$('.window').slideUp();">
            <img alt="关闭" src="../Images/View/close.gif" />
        </div>
        <div class="ct_content">
        </div>
    </div>
    <div class="linkwindow">
        <div class="linktitle" onclick="javascript:$('.linkwindow').slideUp();">
            <img alt="关闭" src="../Images/View/close.gif" />
        </div>
        <div class="linct_content">
        </div>
    </div>
    <div class="reminderpage">
        <div class="remindertitle">
            <img alt="关闭" src="../Images/View/close.gif" />
        </div>
        <div id="remindercontainer">
        </div>
    </div>
    </form>
    <script type="text/javascript" language="javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(
			function (sender, e) {
			    if (e.get_error()) {
			        e.set_errorHandled(true);

			        if (e.get_response().get_timedOut()) {
			            alert("您的请求已超时。");
			        }
			        else if (e.get_response().get_statusCode() != 200) {
			            alert("遇到未知错误。");
			        }
			        else {
			            alert(e.get_error().message);
			        }
			    }
			    //			    else if (e.get_response().get_aborted()) {
			    //			        alert("您的请求已被取消。");
			    //			    }
			});
    </script>
</body>
</html>
